import React, { Component } from 'react'

export class Footer extends Component {
  render() {
      const { tabList, active} = this.props;
    return (
      <div className='footer'>
          {
              tabList.length?
              tabList.map((item,index) => {
                  return <li key={item.id}
                  className={active === index? "on":""}
                  >
                      {item.title}
                  </li>
              }):"暂无数据"
          }
      </div>
    )
  }
}

export default Footer


